home *** CD-ROM | disk | FTP | other *** search
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/Changelo,v
- retrieving revision 1.101
- diff -c -r1.101 Changelo
- *** 1.101 1993/10/26 23:51:25
- --- Changelo 1993/11/17 17:07:22
- ***************
- *** 4282,4284 ****
- --- 4282,4441 ----
- make groups limit 0 for non-MiNT
-
- ---------------------------- Patchlevel 94 ---------------------------
- + === synch with mntlib39
- +
- + ***** include/errno.h
- + ----------------------------
- + revision 38.2
- + date: 1993/10/21 16:21:30; author: entropy; state: Exp; lines: +1 -0
- + Add ENOTEMPTY as alias for EEXIST (POSIX).
- + =============================================================================
- + ***** include/limits.h
- + ----------------------------
- + revision 38.3
- + date: 1993/10/23 18:44:56; author: entropy; state: Exp; lines: +17 -18
- + Raised some arbitrary limits (or changed to actual limit, as in the case
- + of _POSIX_OPEN_MAX). Rearranged things a bit for consistency.
- + ----------------------------
- + revision 38.2
- + date: 1993/10/23 18:28:52; author: entropy; state: Exp; lines: +4 -0
- + Set _POSIX_NGROUPS_MAX to 0 when not __MINT__.
- + Thanks to ntomczak@vm.ucs.ualberta.ca for the bug report.
- + =============================================================================
- + ***** include/time.h
- + ----------------------------
- + revision 38.2
- + date: 1993/10/25 10:00:30; author: entropy; state: Exp; lines: +7 -2
- + Update select() prototype to use fd_set * for arguments, and
- + make some stuff !_POSIX_SOURCE.
- + =============================================================================
- + ***** include/types.h
- + ----------------------------
- + revision 38.2
- + date: 1993/10/25 09:59:28; author: entropy; state: Exp; lines: +4 -1
- + Allow fd_set definition to be gotten from time.h too.
- + =============================================================================
- + ***** include/wait.h
- + ----------------------------
- + revision 38.2
- + date: 1993/10/24 18:47:48; author: nox; state: Exp; lines: +1 -1
- + Some older versions of GCC trip over the new wait macros...so
- + it's better not to use them for now.
- + =============================================================================
- +
- + == end sync
- +
- + read.c:: michal
- + replace the echochar()/delchar() macros with safer ones, and
- + ones that dont solicit warnings from the compiler.
- +
- + mincl:: michal
- + build bzero/memset together when building bzero.o. doing
- + them seperately saves only 12 bytes, but causes jump
- + to become long (again not that much of a big deal, as
- + those jumps happen once)
- +
- + osbind.h: ++jrb
- + relax the constraints on the inputs of trap_14_wwwwwww (only
- + Rsconf maps to this) to "g" from "r", as these many "r" 's
- + give gcc 2.>3.X heartaches (understandably). note this is ok
- + since these args will never be expressions, and we never
- + have to constrain hard enough to force eval before we change
- + sp from underneath gcc.
- +
- + qsort.c: ++jrb
- + adjust order of inclusion of compiler.h so that INLINE may be
- + conditionally overriden even when __GNUC__
- +
- + == sync with mntlib 40
- +
- + ***** abort.c
- + ----------------------------
- + revision 39.2
- + date: 1993/10/28 17:54:14; author: entropy; state: Exp; lines: +20 -2
- + Fix for the TOS lib, and also remove a POSIX violation.
- + =============================================================================
- + ***** utime.c
- + ----------------------------
- + revision 39.2
- + date: 1993/10/27 15:01:02; author: entropy; state: Exp; lines: +16 -1
- + Implement the Dcntl() versionof FUTIME in utime(). Comment out the
- + kludge for directories in the Fcntl() version.
- +
- + ==end sync
- +
- + mincl: ++jrb
- + undo the above change for memset, keep them seperate as there
- + are util there that want one without the other. what the heck, its
- + only about a dozen bytes.
- +
- + ==sync with mntlib 41
- + ***** nlist.c
- + ----------------------------
- + revision 40.2
- + date: 1993/10/31 09:24:14; author: hohmuth; state: Exp; lines: +3 -3
- + add a few typecasts for __MSHORT__
- + =============================================================================
- + ***** strerror.c
- + ----------------------------
- + revision 40.2
- + date: 1993/10/31 11:33:36; author: entropy; state: Exp; lines: +59 -1
- + Add support for the socket lib.
- + =============================================================================
- + ***** utime.c
- + ----------------------------
- + revision 40.2
- + date: 1993/10/31 09:25:04; author: hohmuth; state: Exp; lines: +1 -1
- + make assignments used as truth values clearer, to avoid
- + spurious warnings
- + =============================================================================
- + ***** wcmb.c
- + ----------------------------
- + revision 40.2
- + date: 1993/10/31 09:25:16; author: hohmuth; state: Exp; lines: +2 -2
- + make assignments used as truth values clearer, to avoid
- + spurious warnings
- + =============================================================================
- + ***** wcscat.c
- + ----------------------------
- + revision 40.2
- + date: 1993/10/31 09:25:24; author: hohmuth; state: Exp; lines: +2 -2
- + make assignments used as truth values clearer, to avoid
- + spurious warnings
- + =============================================================================
- + ***** include/PatchLev.h
- + ----------------------------
- + revision 40.2
- + date: 1993/10/30 10:30:02; author: entropy; state: Exp; lines: +1 -1
- + -
- + =============================================================================
- + ***** include/errno.h
- + ----------------------------
- + revision 40.2
- + date: 1993/10/31 11:03:32; author: entropy; state: Exp; lines: +40 -1
- + Add support for the socket library.
- + =============================================================================
- + ***** include/osbind.h
- + ----------------------------
- + revision 40.3
- + date: 1993/10/31 09:23:14; author: hohmuth; state: Exp; lines: +3 -3
- + fix prototypes for Pure C: gemdos(), bios(), xbios()
- + =============================================================================
- +
- + == end sync
- +
- + math.h:: ++jrb
- + allow define NO_INLINE_MATH to override _M68881_. Also, check
- + for __GNUC_INLINE__ as a pre-requisite to inlining (so the user
- + may override globally with __NO_INLINE__.
- +
- + crt0.c:: ++jrb
- + put a section change directive back to .data at the end of the asm()
- + block. in gcc 2.5.X the compiler does not reset the block type
- + by emitting an appropriate .directive after a asm(). this was causing
- + problems with -mbaserel (reloc of acc_argv was always out of range).
- +
- + strerror.c:: ++jrb
- + make sys_errlist[] a char *const like _sock_errlist[].
- +
- + ---------------------------- Patchlevel 95 ---------------------------
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/PatchLev.h,v
- retrieving revision 1.70
- diff -c -r1.70 PatchLev.h
- *** 1.70 1993/10/26 23:48:28
- --- PatchLev.h 1993/11/17 17:03:47
- ***************
- *** 1,5 ****
-
- ! #define PatchLevel "94"
-
- /*
- *
- --- 1,5 ----
-
- ! #define PatchLevel "95"
-
- /*
- *
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/crt0.c,v
- retrieving revision 1.24
- diff -c -r1.24 crt0.c
- *** 1.24 1993/03/16 22:09:01
- --- crt0.c 1993/11/17 03:14:36
- ***************
- *** 221,227 ****
- 1: /* heap base specified */
- movl " Heapbase ",sp /* setup sp */
- addl " Stksize ",sp
- ! jra __acc_main"); /* acc main */
- /* dont even think of */
- /* dropping through */
-
- --- 221,228 ----
- 1: /* heap base specified */
- movl " Heapbase ",sp /* setup sp */
- addl " Stksize ",sp
- ! jra __acc_main
- ! .data"); /* acc main */
- /* dont even think of */
- /* dropping through */
-
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/mincl,v
- retrieving revision 1.32
- diff -c -r1.32 mincl
- *** 1.32 1993/10/26 23:48:33
- --- mincl 1993/11/16 23:28:18
- ***************
- *** 47,53 ****
-
- STRING = strcat.o strchr.o strcmp.o strcpy.o strcspn.o strdup.o \
- strlen.o strncat.o strncmp.o strncpy.o strpbrk.o strrchr.o strspn.o \
- ! strtok.o strstr.o memccpy.o memcmp.o memchr.o \
- bcopy.o bcmp.o bzero.o strerror.o strcoll.o \
- stricmp.o strnicmp.o
- #
- --- 47,53 ----
-
- STRING = strcat.o strchr.o strcmp.o strcpy.o strcspn.o strdup.o \
- strlen.o strncat.o strncmp.o strncpy.o strpbrk.o strrchr.o strspn.o \
- ! strtok.o strstr.o memccpy.o memcmp.o memchr.o memset.o \
- bcopy.o bcmp.o bzero.o strerror.o strcoll.o \
- stricmp.o strnicmp.o
- #
- ***************
- *** 105,110 ****
- --- 105,113 ----
- %.o : %.cpp
- $(CC) $(PPFLAGS) -c $<
-
- + %.o : %.s
- + $(CC) $(CFLAGS) -c $<
- +
- #
- # integer only io stuff
- idoprnt.o: doprnt.c
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/read.c,v
- retrieving revision 1.17
- diff -c -r1.17 read.c
- *** 1.17 1992/04/13 15:50:45
- --- read.c 1993/10/30 18:11:48
- ***************
- *** 32,39 ****
-
- #define iswhite(c) ((c) == ' ' || (c) == '\t')
- #define isvisable(c) ((unsigned char)(c) >= ' ')
- ! #define echochar(fd, c) if (__ttymode & ECHO) (void) _echochar(fd, c); else
- ! #define delchar(fd, n) if (__ttymode & ECHO) _delchar(fd, n); else
-
- extern int errno;
- extern int __col_pos; /* defined in write.c */
- --- 32,40 ----
-
- #define iswhite(c) ((c) == ' ' || (c) == '\t')
- #define isvisable(c) ((unsigned char)(c) >= ' ')
- ! #define echochar(fd, c) ((void)((__ttymode & ECHO) && _echochar((fd), (c))))
- ! #define delchar(fd, n) ((void)((__ttymode & ECHO) ? \
- ! _delchar((fd), (n)),0 : 0 ))
-
- extern int errno;
- extern int __col_pos; /* defined in write.c */
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/abort.c,v
- retrieving revision 1.6
- diff -c -r1.6 abort.c
- *** 1.6 1993/10/26 23:52:14
- --- abort.c 1993/10/28 18:14:22
- ***************
- *** 3,16 ****
- #include <signal.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include "lib.h"
-
- #ifndef SIGABRT
- #define SIGABRT SIGIOT
- #endif
-
- ! __EXITING abort()
- {
- raise(SIGABRT);
- exit(127);
- }
- --- 3,35 ----
- #include <signal.h>
- #include <stdlib.h>
- #include <unistd.h>
- + #include <mintbind.h>
- #include "lib.h"
-
- #ifndef SIGABRT
- #define SIGABRT SIGIOT
- #endif
-
- ! extern int __mint;
- !
- ! __EXITING
- ! abort()
- {
- + #ifdef __MINT__
- + if (__mint)
- + (void) Pkill(Pgetpid(), SIGABRT);
- + #if 0
- + /* Do not do this because it violates POSIX (raise() and
- + kill() are available for the user unless <signal.h> is
- + included in user's source). Fix later.
- + */
- + else
- + raise(SIGABRT);
- + #endif
- + _fclose_all_files();
- + _exit(127);
- + #else
- raise(SIGABRT);
- exit(127);
- + #endif
- }
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/nlist.c,v
- retrieving revision 1.1
- diff -c -r1.1 nlist.c
- *** 1.1 1993/10/26 23:52:49
- --- nlist.c 1993/11/05 01:59:16
- ***************
- *** 31,37 ****
- if( !symread )
- {
- symread=min(sizeof(symbuf),symcount);
- ! if(symread!=read(sym_fd,symbuf,symread))
- {
- close(sym_fd);
- symread=0;
- --- 31,37 ----
- if( !symread )
- {
- symread=min(sizeof(symbuf),symcount);
- ! if((int)symread != read(sym_fd,symbuf, (int)symread))
- {
- close(sym_fd);
- symread=0;
- ***************
- *** 76,82 ****
- if( ( sym_fd=open(file,O_RDONLY) ) == -1 ) return -1;
-
- /* Read in file header */
- ! read(sym_fd,&hbuf,sizeof(hbuf));
-
- /* Executable file ? */
- if(A_BADMAG(hbuf))
- --- 76,82 ----
- if( ( sym_fd=open(file,O_RDONLY) ) == -1 ) return -1;
-
- /* Read in file header */
- ! read(sym_fd,&hbuf,(int) sizeof(hbuf));
-
- /* Executable file ? */
- if(A_BADMAG(hbuf))
- ***************
- *** 87,93 ****
- }
-
- /* Any symbols? */
- ! if( !(symcount=hbuf.a_syms) )
- {
- errno=EDOM;
- return -1;
- --- 87,93 ----
- }
-
- /* Any symbols? */
- ! if((symcount=hbuf.a_syms) == 0)
- {
- errno=EDOM;
- return -1;
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strerror.c,v
- retrieving revision 1.7
- diff -c -r1.7 strerror.c
- *** 1.7 1993/07/10 16:37:03
- --- strerror.c 1993/11/17 00:04:46
- ***************
- *** 3,9 ****
-
- static char nullstr[] = "unknown error";
-
- ! char *sys_errlist[] =
- {
- "OK", /* 0 */
- "error", /* 1 */
- --- 3,9 ----
-
- static char nullstr[] = "unknown error";
-
- ! char *const sys_errlist[] =
- {
- "OK", /* 0 */
- "error", /* 1 */
- ***************
- *** 96,106 ****
- "range error", /* 88 */
- "domain error", /* 89 */
- "I/O error", /* 90 */
- ! "disk full" /* 91 */
- };
-
- int sys_nerr = (int)(sizeof(sys_errlist)/sizeof(sys_errlist[0]));
-
- /*
- * strerror - map error number to descriptive string
- *
- --- 96,160 ----
- "range error", /* 88 */
- "domain error", /* 89 */
- "I/O error", /* 90 */
- ! "disk full", /* 91 */
- ! nullstr, /* 92 */
- ! nullstr, /* 93 */
- ! nullstr, /* 94 */
- ! nullstr, /* 95 */
- ! nullstr, nullstr, nullstr, nullstr, nullstr, /* 96 - 100 */
- ! nullstr, nullstr, nullstr, nullstr, nullstr, /* 101 - 105 */
- ! nullstr, nullstr, nullstr, nullstr, nullstr, /* 106 - 110 */
- ! nullstr, nullstr, nullstr, nullstr, nullstr, /* 111 - 115 */
- ! nullstr, nullstr, nullstr, nullstr, nullstr, /* 116 - 120 */
- ! nullstr, nullstr, nullstr, nullstr, nullstr, /* 121 - 125 */
- ! nullstr, /* 126 */
- ! nullstr, /* 127 */
- ! "interrupted system call" /* 128 */
- };
-
- int sys_nerr = (int)(sizeof(sys_errlist)/sizeof(sys_errlist[0]));
-
- + #ifdef __MINT__
- +
- + /* Support for Kay Roemer's socket library */
- +
- + char *const _sock_errlist[] = {
- + "Socket operation on non-socket", /* 300 */
- + "Destination address required",
- + "Message too long",
- + "Protocol wrong type for socket",
- + "Protocol not available",
- + "Protocol not supported",
- + "Socket type not supported",
- + "Operation not supported",
- + "Protocol family not supported",
- + "Address family not supported by protocol",
- + "Address already in use",
- + "Cannot assign requested address",
- + "Network is down",
- + "Network is unreachable",
- + "Network dropped conn. because of reset",
- + "Software caused connection abort",
- + "Connection reset by peer",
- + "Socket is already connected",
- + "Socket is not connected",
- + "Cannot send after shutdown",
- + "Connection timed out",
- + "Connection refused",
- + "Host is down",
- + "No route to host",
- + "Operation already in progress",
- + "Operation now in progress",
- + "Operation would block"
- + };
- +
- + int _sock_nerr = (int)(sizeof (_sock_errlist) / sizeof (char *));
- +
- + #define MINSOCKERR 300
- + #define MAXSOCKERR (MINSOCKERR + _sock_nerr)
- +
- + #endif
- +
- /*
- * strerror - map error number to descriptive string
- *
- ***************
- *** 115,120 ****
- --- 169,178 ----
-
- if (errnum >= 0 && errnum < sys_nerr)
- return(sys_errlist[errnum]);
- + #ifdef __MINT__
- + else if (errnum >= MINSOCKERR && errnum < MAXSOCKERR)
- + return(_sock_errlist[errnum - MINSOCKERR]);
- + #endif
- else
- return(nullstr);
- }
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/utime.c,v
- retrieving revision 1.13
- diff -c -r1.13 utime.c
- *** 1.13 1993/10/26 23:53:05
- --- utime.c 1993/11/05 01:59:17
- ***************
- *** 85,100 ****
- settime.acdate = (unsigned short) (actime & 0xFFFF);
- settime.modtime = (unsigned short) ((modtime >> 16) & 0xFFFF);
- settime.moddate = (unsigned short) (modtime & 0xFFFF);
- fh = (int) Fopen(filename, 2);
- if (fh < 0) {
- /* Kludge: return success for dirs even though we failed */
- if ((fh == -ENOENT) && (Fattrib(filename, 0, 0) == FA_DIR))
- return 0;
- errno = -fh;
- return -1;
- }
-
- - res = -EINVAL;
- if (__mint > 90) {
- if (tset)
- res = Fcntl(fh, (long)&settime, FUTIME);
- --- 85,115 ----
- settime.acdate = (unsigned short) (actime & 0xFFFF);
- settime.modtime = (unsigned short) ((modtime >> 16) & 0xFFFF);
- settime.moddate = (unsigned short) (modtime & 0xFFFF);
- + res = -EINVAL;
- + if (__mint > 92) {
- + if (tset)
- + res = Dcntl(FUTIME, (long) filename, (long) &settime);
- + else
- + res = Dcntl(FUTIME, (long) filename, (long) 0);
- + }
- + if (res != -EINVAL) {
- + if (res < 0) {
- + errno = (int) -res;
- + return -1;
- + }
- + return 0;
- + }
- fh = (int) Fopen(filename, 2);
- if (fh < 0) {
- + #if 0
- /* Kludge: return success for dirs even though we failed */
- if ((fh == -ENOENT) && (Fattrib(filename, 0, 0) == FA_DIR))
- return 0;
- + #endif
- errno = -fh;
- return -1;
- }
-
- if (__mint > 90) {
- if (tset)
- res = Fcntl(fh, (long)&settime, FUTIME);
- ***************
- *** 126,132 ****
- date = (int) (dtime & 0xffff);
- time = (int) (dtime >> 16) & 0xffff;
-
- ! if ((r = Tsetdate(date)) || (r = Tsettime(time))) {
- errno = r == -1 ? EBADARG : (int) -r;
- return -1;
- }
- --- 141,147 ----
- date = (int) (dtime & 0xffff);
- time = (int) (dtime >> 16) & 0xffff;
-
- ! if (((r = Tsetdate(date)) != 0) || ((r = Tsettime(time)) != 0)) {
- errno = r == -1 ? EBADARG : (int) -r;
- return -1;
- }
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/wcmb.c,v
- retrieving revision 1.1
- diff -c -r1.1 wcmb.c
- *** 1.1 1993/10/26 23:53:09
- --- wcmb.c 1993/11/05 01:59:18
- ***************
- *** 31,37 ****
-
- if(mbstr == NULL) mbstr = "";
-
- ! while(revcnt && (*wstr++ = *mbstr++)) revcnt--;
-
- return maxlen - revcnt;
- }
- --- 31,37 ----
-
- if(mbstr == NULL) mbstr = "";
-
- ! while(revcnt && ((*wstr++ = *mbstr++) != 0)) revcnt--;
-
- return maxlen - revcnt;
- }
- ***************
- *** 62,68 ****
-
- if(wstr == NULL) wstr = _wnull; /* Better avoid L"". */
-
- ! while(revcnt && (*mbstr++ = (char) *wstr++)) revcnt--;
-
- return maxlen - revcnt;
- }
- --- 62,68 ----
-
- if(wstr == NULL) wstr = _wnull; /* Better avoid L"". */
-
- ! while(revcnt && ((*mbstr++ = (char) *wstr++) != 0)) revcnt--;
-
- return maxlen - revcnt;
- }
- ===================================================================
- RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/wcscat.c,v
- retrieving revision 1.1
- diff -c -r1.1 wcscat.c
- *** 1.1 1993/10/27 00:06:00
- --- wcscat.c 1993/11/05 01:59:18
- ***************
- *** 19,25 ****
- {
- for (dscan = dst; *dscan; dscan++)
- continue;
- ! while ((*dscan++ = *sscan++))
- continue;
- }
- return(dst);
- --- 19,25 ----
- {
- for (dscan = dst; *dscan; dscan++)
- continue;
- ! while ((*dscan++ = *sscan++) != 0)
- continue;
- }
- return(dst);
- ***************
- *** 43,49 ****
- for (dscan = dst; *dscan; dscan++)
- continue;
- count = n;
- ! while ((c = *sscan++) && --count >= 0)
- *dscan++ = c;
- *dscan = 0;
- }
- --- 43,49 ----
- for (dscan = dst; *dscan; dscan++)
- continue;
- count = n;
- ! while (((c = *sscan++) != 0) && --count >= 0)
- *dscan++ = c;
- *dscan = 0;
- }
-